package com.md.Lession10;

public class Dome7 {
	public static void main(String[] args) {
		int[] arr={1,2,3,4,5,6,7,8,9,10};
		int a=0;
		for (int i = 0; i < arr.length; i++) {
			if (a<=arr[i]) {
				a=arr[i];
				System.out.println(a);
			} else {
				

			}
		}
	
	}

}
